#!/bin/sh
. /etc/rc.common
export HOME=/usr/local/dijjer
cd /usr/local/dijjer
StartService ()
{
	ConsoleMessage "Starting Dijjer"
	nohup java -jar dijjer.jar &
}

StopService ()
{
	ConsoleMessage "Stopping Dijjer"
	curl http://127.0.0.1:9115/shutdown?confirm=yes > /dev/null 2> /dev/null
}

RestartService () { StopService; StartService; }

RunService "$1"
